package com.aqie.optimize.service.impl;

import com.aqie.optimize.bean.Actor;
import com.aqie.optimize.mapper.ActorMapper;
import com.aqie.optimize.service.IActorService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: aqie
 * @create: 2020-12-24 20:21
 **/
@Service
public class ActorServiceImpl extends ServiceImpl<ActorMapper, Actor> implements IActorService {
    @Autowired
    private ActorMapper actorMapper;

    @Override
    public Actor getActorById(short id){
        Actor actor = actorMapper.selectById(id);
        return actor;
    }
}
